const webpack = require('webpack');
const path = require('path');

module.exports = {
	devtool:"source-map",
	entry: {
    // list:'./src/list.js',
    // list2:'./src/list2.js',
    // list3:'./src/list3.js',
    // list4:'./src/list4.js',
    // clickEvent:'./src/clickEvent.js',
    // CustomEvent:'./src/CustomEvent.js',
    // KeyDom:'./src/key.js',
		// From:"./src/Form.js",
		// ListPanel:"./src/ListPanel.js",
		// reduxApp:"./src/reduxApp.js",
		TopUI:"./src2/TopUI.js",
  },
	output: {
		filename: '[name].js',
		path: path.join(__dirname, 'dist')
	},

	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				loader: 'babel-loader',
				options: {
				presets: ["react",'env']
				}
			}
		]
	},
	devServer:{
		contentBase:'./dist'
	}
};
